* {
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #444;
}

.loader {
    position: relative;
    width: 100%;
    height: 60px;
}

.loader span {
    position: absolute;
    width: 30px;
    height: 30px;
    line-height: 60px;
    margin: 0 5px;
    color: #fff;
    text-align: center;
    font-size: 40px;
    transform: rotate(180deg);
    opacity: 0;
    animation: move 2.5s linear infinite;
    bottom: 0px;
    border-radius: 50%;
}
/* 加投影效果 */
.loader span::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -30px;
    width: 30px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.2);
    /* 模糊滤镜 */
    filter: blur(1.5px);
}
.loader span:nth-child(2){
    animation-delay: 0.2s;
}
.loader span:nth-child(3){
    animation-delay: 0.4s;
}
.loader span:nth-child(4){
    animation-delay: 0.6s;
}
.loader span:nth-child(5){
    animation-delay: 0.8s;
}
.loader span:nth-child(6){
    animation-delay: 1s;
}
.loader span:nth-child(7){
    animation-delay: 1.2s;
}
.loader span:nth-child(8){
    animation-delay: 1.4s;
}
.loader span:nth-child(9){
    animation-delay: 1.6s;
}
.loader span:nth-child(10){
    animation-delay: 1.8s;
}
.loader span:nth-child(8)::before,
.loader span:nth-child(9)::before,
.loader span:nth-child(10)::before{
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.loader span:nth-child(8){
    background-color: #eccc68;
}
.loader span:nth-child(9){
    background-color: #7bed9f;
}
.loader span:nth-child(10){
    background-color: #ff6b81;
}

@keyframes move {
    0% {
        right: 0;
        opacity: 0;
    }

    35% {
        right: 41%;
        transform: rotate(0deg);
        opacity: 1;
    }

    65% {
        right: 59%;
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        right: 100%;
        transform: rotate(-180deg);
        opacity: 0;
    }
}